<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Ornament.NHibernates.Configurations"%>
<%@ Import Namespace="System.Net.Mime" %>

<script runat="server" type="text/C#">
    private static IEnumerable<SelectListItem> GetInnerDataBaseType()
    {
        return from dialect in DataBaseType.SupportDataBaseTypes
               select new SelectListItem { Text = dialect.DataBaseName, Value = dialect.Dialect };
    }
</script>

<div class="cssform">
    <p>
        <label for="DropDownlistListDataBaseTypes">
            DataBaseType:</label>
        <%=Html.DropDownList("DropDownlistListDataBaseTypes", GetInnerDataBaseType())%>
    </p>
    <p>
        <label>
            Dialect:
        </label>
        <span id="Dialect"></span>
    </p>
    <p>
        <label>
            Driver Class:</label>
        <select id="SuggestionDriverClassDropDonwList" name="SuggestionDriverClassDropDonwList">
        </select>
    </p>
    <p>
        <label for="connectionString">
            Connection:</label>
        <input id="connectionString" type="text" style="width: 600px" />
    </p>
</div>
